#define _CRT_SECURE_NO_WARNINGS  
#include<stdio.h>
void PrintMulTable(int N)
{
	for (int i = 1; i <= N; ++i)
	{
		for (int j = 1; j <= i; ++j)
		{
			printf("%d*%d=%2d  ", j, i, j * i);
		}
		printf("\n");
	}
}
int maintest()
{
	int N = 0;
	scanf("%d", &N);
	PrintMulTable(N);
	return 0;
}